package com.econ.powercloud.ems.timing.report.prometheus.callback;

import com.econ.powercloud.ems.util.AsyncHttpClientUtil;
import org.springframework.stereotype.Component;

/**
 * clickhouse 每秒插入次数
 */
@Component
public class PrometheusClickhouseInsertRowsRateCallback extends AbstractPrometheusMultiDataCallback implements AsyncHttpClientUtil.StringFutureCallback {

    final private String category = "clickhouse";

    final private String item = "insertRowsRate";

    @Override
    public void success(String content) {
        super.dealWithPrometheusCallbackData(content);
    }

    @Override
    String getCategory() {
        return this.category;
    }

    @Override
    String getItem() {
        return this.item;
    }
}
